﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PhysicalRegistePopForm.aspx.cs" Inherits="App_Commons_PhysicalRegistePopForm" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>体检报告</title>
    <link href="../../style/style.css" rel="stylesheet" type="text/css"/>
    <script language="javascript" type="text/javascript" src="../../javascript/commons.aspx"></script>
    <script language="javascript">
    function selectPhysical(id){
     var obj = opener.window.document.getElementById('<%=Request.QueryString["CONTROL_ID"]%>');
     if(obj!=null){
        obj.value=id;
        window.close();
     }
    }
    </script>
</head>
<body style="background-image:url('../../images/bgbg2.jpg')">
    <form id="form1" runat="server">
    <div>
        <table class="table_border_bg">
        <tr>
            <td colspan="6" align="center" style="height: 33px"><b>体检报告画面<br />
                &nbsp;</b></td>
        </tr>
    </table>

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    &nbsp;<asp:View ID="View1" runat="server">
    <div id="divSearch" runat="server" style="display:block" >
        <table class="table_border_bg">
        <tr>
            <td colspan="6" align="center" style="height: 33px"><b>
                <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="8" ForeColor="Red">
                    <cc1:CheckMaxCharLenAttribute CharLen="12" Code="E0081" ControlToValidator="txtPhysicalNo">
                        <cc1:ComAbsParamsAttribute Parameter="体检表编号" />
                        <cc1:ComAbsParamsAttribute Parameter="12" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckMaxCharLenAttribute CharLen="12" Code="E0081" ControlToValidator="txtPersonId">
                        <cc1:ComAbsParamsAttribute Parameter="人员编号" />
                        <cc1:ComAbsParamsAttribute Parameter="12" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckMaxCharLenAttribute CharLen="16" Code="E0081" ControlToValidator="txtName">
                        <cc1:ComAbsParamsAttribute Parameter="人员姓名" />
                        <cc1:ComAbsParamsAttribute Parameter="16" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckMaxCharLenAttribute CharLen="10" Code="E0081" ControlToValidator="txtDate">
                        <cc1:ComAbsParamsAttribute Parameter="登录日期" />
                        <cc1:ComAbsParamsAttribute Parameter="10" />
                    </cc1:CheckMaxCharLenAttribute>
                    <cc1:CheckDateAttribute Code="E0037" ControlToValidator="txtDate" DataFormat="yyyy/mm/dd">
                        <cc1:ComAbsParamsAttribute Parameter="登录日期" />
                    </cc1:CheckDateAttribute>
                </cc1:ComValidator>
            </b></td>
        </tr>
    </table>
    <table width="100%">
      <tr>
        <td>
            <table class="table_border_line">
            <tr>
			    <td align="left" colspan="4">
			    <script language="javascript">
                                (new TitleBar('RegisterBar', '检索条件')).showBar();
                </script>
			    </td>						
		      </tr>				
            </table>
		    <table class="table_border_line" style="background-color:#ffffff">
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    体检表编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPhysicalNo" runat="server" MaxLength="12"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPersonId" runat="server" MaxLength="12"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>		  
		      	<tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员姓名</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtName" runat="server" MaxLength="16"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>
		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap" align="left">
                    登录日期</td>
			    <td align="left">
                    &nbsp;<asp:TextBox ID="txtDate" runat="server" MaxLength="10" onfocus="new Calendar().show(this);"></asp:TextBox><span class="red0">(yyyy/mm/dd)</span></td>
			    <td align="right">&nbsp;</td>						
		      </tr>				  
           </table></td>
      </tr>
      <tr>
        <td align="center">
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSearch" runat="server" CssClass="button1" Text="检 索" Width="100%" OnClick="btnSearch_Click" /></td>						                			
             </tr>
          </table>    </td>
      </tr>
    </table>
        <br/>
    <table width="100%">
    </table>
    </div>
    <table class="table_border_bg">
       <tr>
        <td>
            &nbsp;<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                CssClass="GridView_table" DataSourceID="ObjectDataSource1"
                Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="" Text="" ImageUrl="~/images/info.gif"  href="#"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="PhysicalId" HeaderText="体检表编号">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="PersonId" HeaderText="人员表编号">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Name" HeaderText="会员姓名">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NewDate" HeaderText="登录日期" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:CommandField ButtonType="Image" HeaderText="详细" SelectImageUrl="~/images/info.gif"
                        SelectText="" ShowSelectButton="True">
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemStyle CssClass="GridView_item_center" HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:CommandField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            </asp:GridView>
        </td>
       </tr>	
      </table>
      <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindByPhyscal" TypeName="Shpm.App.Input.Dao.PhyscalDao">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtPhysicalNo" Name="PhysicalId" PropertyName="Text" DefaultValue="-1" />
            <asp:ControlParameter ControlID="txtPersonId" Name="PersonId" PropertyName="Text" DefaultValue="-1" />
            <asp:ControlParameter ControlID="txtName" Name="Name" PropertyName="Text" DefaultValue="-1" />
            <asp:ControlParameter ControlID="txtDate" Name="NewDate" PropertyName="Text" DefaultValue="-1" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <table width="80%">
          <tr>
            <td>
            <table class="table_border_line">
            <tr>
            <td colspan="5" align="left" style="height: 20px">
            <script language="javascript">
                                (new TitleBar('RegisterBar1', '入住体检登记')).showBar();
                </script>
            </td>
            </tr>
            </table>
        <table class="table_border_line" border="1" style="background-color:#ffffff">
          
          <tr>
            <td colspan="3">
                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                <td width="30%">
                    人员编号：<asp:Label ID="personID" runat="server"></asp:Label></td>
                <td width="20%">
                    姓名：<asp:Label ID="nameC" runat="server"></asp:Label></td> 
                <td width="15%">
                    性别：<asp:Label ID="sex" runat="server"></asp:Label></td> 
                <td width="15%">
                    民族：<asp:Label ID="nationality" runat="server"></asp:Label></td> 
                <td width="20%">
                    籍贯：<asp:Label ID="native" runat="server"></asp:Label></td></tr>
                </table>
            </td>
            <td width="16%" rowspan="7">&nbsp;<asp:Image ID="Image1" runat="server" Height="156px" ImageUrl="~/images/PHOTO.gif" Width="148px" />
            </td>
          </tr>
          <tr>
            <td colspan="3">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr><td width="30%">
                    出身年月：<asp:Label ID="birthday" runat="server"></asp:Label></td> <td>
                        年龄：
                        <asp:Label ID="txtAge" runat="server"></asp:Label></td></tr>
            </table>
            </td>
            </tr>
          <tr>
            <td colspan="3">
                住址：<asp:Label ID="addressHome" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td width="5%" rowspan="2" align="center">病<br/>
        史</td>
            <td colspan="2" nowrap style="height: 18px">&nbsp;个人病史：
                <asp:Label ID="txtPersonMedicalRecord" runat="server" Width="624px"></asp:Label></td>
            </tr>
          <tr>
            <td colspan="2" nowrap>&nbsp;家属病史：
                <asp:Label ID="txtFamilyMedicalRecord" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td colspan="3">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="30%">身高&nbsp;：
                        <asp:Label ID="txtHeight" runat="server"></asp:Label>
                        公分</td> 
                    <td width="30%">
                        体重：&nbsp;
                        <asp:Label ID="txtWeight" runat="server"></asp:Label>公斤</td>
                    <td width="40%">胸围 吸气：&nbsp;
                        <asp:Label ID="txtChestSniff" runat="server"></asp:Label>公分 呼气：
                        <asp:Label ID="txtChestBreath" runat="server"></asp:Label>&nbsp; 公分</td>
                </tr>
            </table>
            </td>
            </tr>
          <tr>
            <td colspan="3">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="40%">握力 左：&nbsp;
                        <asp:Label ID="txtGripLeft" runat="server"></asp:Label>公斤 &nbsp; &nbsp;&nbsp; 右：&nbsp;
                        <asp:Label ID="txtGripRight" runat="server"></asp:Label>
                        公斤</td> 
                    <td width="20%">
                        营养：&nbsp;
                        <asp:Label ID="cmbNutrition" runat="server"></asp:Label></td> 
                    <td width="40%">矫正视力 左：&nbsp;
                        <asp:Label ID="txtAdjustEyesightL" runat="server"></asp:Label>
                        &nbsp; &nbsp; 右：&nbsp;
                        <asp:Label ID="txtAdjustEyesightR" runat="server"></asp:Label></td>
                </tr>
            </table>
            </td>
            </tr>
          <tr>
            <td rowspan="5" align="center">五<br />
        官<br />
        科</td>
            <td colspan="3">
                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30%" style="height: 24px">视力 左：&nbsp;
                            <asp:Label ID="txtEyesightL" runat="server"></asp:Label>
                            &nbsp; &nbsp; 右：&nbsp;
                            <asp:Label ID="txtEyesightR" runat="server"></asp:Label></td>
                        <td width="20%" style="height: 24px">
                            色觉：&nbsp;
                            <asp:Label ID="cmbColorFeel" runat="server"></asp:Label></td>
                        <td width="20%" style="height: 24px">
                            嗅觉：&nbsp;
                            <asp:Label ID="cmbSmellFeel" runat="server"></asp:Label></td>
                        <td width="30%" style="height: 24px">听力 左：
                            <asp:Label ID="txtHearingLeft" runat="server"></asp:Label>
                            &nbsp; &nbsp;&nbsp; 右：&nbsp;
                            <asp:Label ID="txtHearingRight" runat="server"></asp:Label></td>
                    </tr>
                </table>
            </td>
            </tr>
          <tr>
            <td colspan="3">
                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30%" style="height: 40px">眼：砂眼 左&nbsp;：
                            <asp:Label ID="cmbTrachomaLeft" runat="server"></asp:Label>
                            &nbsp; &nbsp; 右：&nbsp;
                            <asp:Label ID="cmbTrachomaRight" runat="server"></asp:Label></td> 
                        <td style="height: 40px">
                            其他：&nbsp;
                            <asp:Label ID="txtOtherEye" runat="server" Width="536px"></asp:Label></td>
                    </tr>
                </table>
            </td>
            </tr>
          <tr>
            <td nowrap>
                咽喉：&nbsp;
                <asp:Label ID="txtThroat" runat="server"></asp:Label></td>
            <td colspan="2" nowrap>
                鼻：&nbsp;
                <asp:Label ID="txtNose" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td width="48%" nowrap>
                扁桃体：&nbsp;
                <asp:Label ID="cmbTonsil" runat="server"></asp:Label></td>
            <td colspan="2" nowrap>
                齿：&nbsp;
                <asp:Label ID="txtTeeth" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td nowrap style="height: 35px">
                其它：&nbsp;
                <asp:Label ID="txtOtherFiveOrgans" runat="server"></asp:Label></td>
            <td colspan="2" nowrap style="height: 35px"></td>
            </tr>
          <tr>
            <td rowspan="8" align="center">外<br />
        科</td>
            <td>
                皮肤：&nbsp;
                <asp:Label ID="txtSkin" runat="server"></asp:Label></td>
            <td colspan="2">
                瘘管：&nbsp;
                <asp:Label ID="txtFistula" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                胸廓：&nbsp;
                <asp:Label ID="cmbParapet" runat="server"></asp:Label></td>
            <td colspan="2" nowrap>
                肛裂或肛脱：&nbsp;
                <asp:Label ID="txtAnalFistula" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                关节：&nbsp;
                <asp:Label ID="cmbJoint" runat="server"></asp:Label></td>
            <td colspan="2">
                痔核：&nbsp;
                <asp:Label ID="cmbHaemorrhoids" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                脊柱：&nbsp;
                <asp:Label ID="cmbSpinalColumn" runat="server"></asp:Label></td>
            <td colspan="2">
                平底足：&nbsp;
                <asp:Label ID="cmbFlatfoot" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                四肢：&nbsp;
                <asp:Label ID="cmbLimb" runat="server"></asp:Label></td>
            <td colspan="2">静脉 曲：
                <asp:Label ID="cmbVaricosityBend" runat="server"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp; 张：&nbsp;
                <asp:Label ID="cmbVaricositySpread" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                淋巴腺：&nbsp;
                <asp:Label ID="cmbLymph" runat="server"></asp:Label></td>
            <td colspan="2">
                反射：&nbsp;
                <asp:Label ID="cmbReflect" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                外生殖器：&nbsp;
                <asp:Label ID="txtPudendum" runat="server"></asp:Label></td>
            <td colspan="2">
                畸形：&nbsp;
                <asp:Label ID="txtMalformation" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                疝气：&nbsp;
                <asp:Label ID="cmbColic" runat="server"></asp:Label></td>
            <td colspan="2">
                其它：&nbsp;
                <asp:Label ID="txtOtherSurgery" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td rowspan="5" align="center">内<br />
              科</td>
            <td>血压/毫米Hg 舒张压：&nbsp;
                <asp:Label ID="txtBloodSressureSpread" runat="server"></asp:Label>收缩压：
                <asp:Label ID="txtBloodPressureBend" runat="server"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp; 脉搏：&nbsp;
                <asp:Label ID="txtPulse" runat="server"></asp:Label>
                次/分</td>
            <td colspan="2">
                肝：&nbsp;
                <asp:Label ID="txtLiver" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                心界：&nbsp;
                <asp:Label ID="cmbHeartRange" runat="server"></asp:Label></td>
            <td colspan="2">
                脾：&nbsp;
                <asp:Label ID="txtSpleen" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                心音：&nbsp;
                <asp:Label ID="cmbHeartSounds" runat="server"></asp:Label></td>
            <td colspan="2">
                甲状腺：&nbsp;
                <asp:Label ID="cmbThyroidGland" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                肺：&nbsp;
                <asp:Label ID="cmbLung" runat="server"></asp:Label></td>
            <td colspan="2">
                精神压缩：&nbsp;
                <asp:Label ID="cmbSpiritBend" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td>
                腹：&nbsp;
                <asp:Label ID="cmbPaunch" runat="server"></asp:Label></td>
            <td colspan="2">
                其它：&nbsp;
                <asp:Label ID="txtOtherInternalMedicine" runat="server"></asp:Label></td>
            </tr>
          <tr>
            <td colspan="4">放射科检查</td>
            </tr>
          <tr>
            <td rowspan="5" align="center">化<br />
        验</td>
            <td colspan="3">血液： 康氏反应 血色素 血沉 丝虫</td>
            </tr>
          <tr>
            <td colspan="3">大便： 常规或沉淀 孵化</td>
            </tr>
          <tr>
            <td colspan="3" style="height: 18px">小便： 蛋白 糖 其他</td>
            </tr>
          <tr>
            <td colspan="3">痰液</td>
            </tr>
          <tr>
            <td colspan="3">其它特殊试验及检查</td>
            </tr>
          <tr>
            <td colspan="4">日期</td>
          </tr>
        </table>	</td>
          </tr>
          <tr>
            <td align="center">
                &nbsp; &nbsp; &nbsp;
	        <asp:Button ID="btnBack" runat="server" Text="  返 回  " CssClass="button" OnClick="btnBack_Click" />
	        </td>
          </tr>   
        </table>
    </asp:View>
</asp:MultiView>
    <p>&nbsp;</p>
    </div>
    </form>
</body>
</html>
